package top.moxingwang.javawork.concurrent;

import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;

public class ForkJoinPoolTest {
    public static void main(String[] args) {
        ForkJoinPool forkJoinPool = new ForkJoinPool();
        ForkJoinTask<?> submit = forkJoinPool.submit(new Runnable() {
            @Override
            public void run() {

            }
        });
        ForkJoinTask<?> fork = submit.fork();
        Object join = submit.join();


    }
}
